function getLocalStorageStr_() {
    var str = new Array();
    var len = localStorage.length;
    if (len > 0) {
        for (var i = 0; i < len; i++) {
            var obj = new Object();
            var key = localStorage.key(i);
            var value = localStorage.getItem(key);
            obj[key] = value;
            str.push(obj);
        }
    }
    window.android.getLocalStorage(JSON.stringify(str));
}
getLocalStorageStr_();